/* src/app/dashboard/(auth)/comment-admin/[id]/page.module.css */

/* 返回按钮样式 */
.backBtn {
  padding: 0.6rem 1rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.backBtn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-medium);
}

/* 邮件回复区域样式 */
.emailReplySection {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.emailHeader {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}

.emailTitle {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.emailSubtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* 表单布局 */
.formGroup {
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.detailLabel {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.formValue {
  padding: 0.6rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* 文本框样式 */
.emailTextarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
}

.emailTextarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  border-width: 1.5px;
}

/* 按钮区域布局 */
.emailActions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

/* 发送按钮样式 */
.sendEmailBtn {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-blue);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.sendEmailBtn:hover {
  background-color: var(--accent-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sendEmailBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.sendEmailBtn:disabled {
  background-color: var(--border-medium);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.8;
}

/* 清空按钮样式 */
.clearEmailBtn {
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clearEmailBtn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-medium);
}

.clearEmailBtn:disabled {
  color: var(--border-light);
  background-color: var(--bg-tertiary);
  cursor: not-allowed;
}

/* 发送中动画 */
.btnLoading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .emailActions {
    flex-direction: column;
  }
  
  .sendEmailBtn, .clearEmailBtn {
    width: 100%;
    min-width: auto;
  }
}